import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
import Layout from '@/layout'
export const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    redirect: '/index',
    component: Layout,
    name: 'index',
    meta: {
      title: '渠道管理'
    },
    children: [
      {
        path: '/index',
        component: () => import('@/views/index/index'),
        meta: { title: '物流' },
        name: 'Home'
      }
    ]
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
